cmake_minimum_required(VERSION 3.5)

project(sms-tool LANGUAGES CXX)

set(CMAKE_INCLUDE_CURRENT_DIR ON)

set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)

set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

find_package(Qt5 COMPONENTS Widgets REQUIRED)

file(GLOB SRCS
        main.cpp
        AT/*.*
        ui/*.*
        utils/*.*
        )
include_directories(ui)
add_executable(${PROJECT_NAME} ${SRCS})

add_subdirectory(modules/SmartSerial)
target_compile_definitions(smartserial PRIVATE -DLOG_NDEBUG)
target_link_libraries(${PROJECT_NAME} PRIVATE Qt5::Widgets smartserial)
